﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FormRemoteModel.PhysicalQuery.Model
{
    public class PhysicalQuerySet
    {

        [NullValidate("form.query.label.null")]
        [LenValidate("form.query.label.len", 1, 50)]
        public string Label
        {
            get;
            set;
        }

        /// <summary>
        /// 控件配置
        /// </summary>
        public Dictionary<string, object> ControlSet { get; set; }

        /// <summary>
        /// 查询列ID
        /// </summary>
        public long[] ColumnId { get; set; }

        [LenValidate("form.placeholder.len", 0, 50)]
        public string Placeholder { get; set; }


        [EnumValidate("form.query.filter.mode.error", typeof(QueryFilterMode))]
        public QueryFilterMode FilterMode { get; set; }

        public bool IsMoreFilter { get; set; }
    }
}
